package com.xuzimian.globaldemo.spring.springrpc;

public class RemoteServerPublisServiceImpl implements RemoteServerPublisService {
	private String beanNameString = "clientBean";

	public RemoteServerPublisServiceImpl() {
	};

	public RemoteServerPublisServiceImpl(String beanNameString) {
		this.beanNameString = beanNameString;
	}

	@Override
	public String doSomething(String protocol) {
		System.out.println(beanNameString + " : 有客户端在调用doSomething方法！");
		return "你好，我是远程服务器上发布的"+protocol+"服务！";
	}
}
